package org.abacus.core.dao.generic;

import org.hibernate.Session;

public abstract class GenericDaoImpl<T, ID> implements GenericDao<T, ID> {

	/**
	 *
	 */
	private static final long serialVersionUID = -2093800165056881616L;

	protected Session getSession() {
		return null;
	}

	protected abstract Class<T> getType();

	public void saveOrUpdate(Object arg0) {
		this.getSession().saveOrUpdate(arg0);
	}

	public void delete(Object arg0) {
		this.getSession().delete(arg0);
	}
}
